<template>
  <div>
    <h1>订单详情</h1>
    <p>订单号:{{ list.orderNo }}</p>
    <p>创建时间:{{ list.createTime }}</p>
    <p>
      收件人:
      {{ list.shippingVo.receiverName }}
       {{ list.shippingVo.receiverCity }}
       {{ list.shippingVo.receiverAddress }}
    </p>
    <p>订单状态:{{ list.statusDesc }}</p>
    <p>支付方式:{{ list.paymentTypeDesc }}</p>
    <p>订单金额:{{ list.payment }}</p>
  </div>
</template>
<script>
import { order_indexList } from "@/api/api";
export default {
  name: "",
  components: {},
  props: [],
  data() {
    return {
      list: [],
    };
  },
  computed: {},
  watch: {},
  created() { 
  },
  mounted() {
    this.searchIndex();
  },
  methods: {
    // 订单详情
    async searchIndex() {
      let id = this.$route.query.id;
      const { data: res } = await order_indexList(
        `/api/order/detail.do?orderNo=${id}`
      );
      this.list = res.data;
    },
  },
};
</script>
<style scoped>
</style>